package com.sxfq.loansupermarket.backsystem.modular.marketing.controller;

import com.sxfq.loansupermarket.backsystem.common.controller.BaseController;
import com.sxfq.loansupermarket.backsystem.modular.basicData.service.IGetListService;
import com.sxfq.loansupermarket.backsystem.modular.marketing.entity.ReservationsInfo;
import com.sxfq.loansupermarket.backsystem.modular.marketing.service.IReservationsTabService;
import com.sxfq.loansupermarket.backsystem.modular.tcCenter.service.IConsultantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author py
 * @Date
 */
@Controller
@RequestMapping("/reservationsTabController")
public class ReservationsTabController extends BaseController {
    @Autowired
    IReservationsTabService reservationsTabService;

    @Autowired
    IGetListService getListService;

    @Autowired
    IConsultantService service;

    /**
     * 市场患者点人名，tab患者信息查询
     */
    @RequestMapping(value = "/getReservationsInformation", method = RequestMethod.POST)
    @ResponseBody
    public ReservationsInfo getReservationsInformation(String id) {
        return reservationsTabService.getReservationsInformation(id);
    }

    @RequestMapping(value = "/getReservationsHuifang", method = RequestMethod.POST)
    @ResponseBody
    public ReservationsInfo getReservationsHuifang(String id) {
        return reservationsTabService.getReservationsHuifang(id);
    }
}